<script language="javascript" type="text/javascript" src="<?php echo $this->config['js']; ?>/euro2012/jquery.jqote2.min.js"></script>
<script src="http://plugins.banbe.net/static/js/v2/social-plugins.js?_t=200911" type="text/javascript"></script>
<script src="http://plugins.banbe.net/static/js/v2/fo-connect.js?_t=200911" type="text/javascript"></script>

<div class="box_width_common">
    <div id="col_left" class="w670">
        <!-- InstanceBeginEditable name="col left" -->
        <div id="box_details_news" class="box_width_common box_col_670">
            <div class="w670 left">
                <div class="main_content_detail">
                    <div class="content_news w650 left">
                        <div class="box_width_common">
                            <div class="w480 left">
                                <div class="title_news">
                                    <h1><?php echo $this->arrArticleDetail['title'] ?></h1>
                                </div>
                                <div class="short_intro">
                                    <?php echo $this->arrArticleDetail['lead'] ?>
                                </div>                                
                                <div class="fck_detail">
                                    <?php echo $this->arrArticleDetail['content'] ?>
                                </div>                                
                            </div>
                            <div class="share_bar w160 right">
                                <div class="time txt_gray left txt_11"><?php echo $this->DateTimeFormat($this->arrArticleDetail['publish_time'], 'long'); ?></div>
                                <?php echo $this->render('common/box_share.phtml'); ?>

                                <?php if(!empty($this->arrRefernce)) { ?>
                                <div class="block_news_detail_right">
                                    <div class="txt_block_news_detail">Tin liên quan</div>
                                    <ul>
                                        <?php foreach ($this->arrRefernce as $arrArticle) { ?>
                                            <li><a class="txt_gray" href="<?php echo $this->articleurl($arrArticle, 1, 1) ?>" title="<?php echo $arrArticle['title'] ?>" alt="<?php echo $arrArticle['title'] ?>"><?php echo $arrArticle['title'] ?></a><span class="txt_gray"></span></li>
                                        <?php } ?>
                                    </ul>
                                </div>
                                <?php } if(!empty($this->arrTopic)) { ?>
                                <div class="block_news_detail_right">
                                    <div class="txt_block_news_detail">Tin cùng chủ đề</div>
                                    <ul>
                                         <?php
                                         foreach($this->arrTopic as $arrTopic){
                                            if(empty($arrTopic['data'])){
                                               continue;
                                            }
                                            foreach ($arrTopic['data'] as $intArticleID) {
                                                    $arrArticle = $this->arrRelativeArticle[$intArticleID];
                                                    if (!empty($arrArticle)) {
                                                        ?>
                                                        <li><a class="txt_black_hover_blue" href="<?php echo $this->articleurl($arrArticle, 1, 1) ?>" title="<?php echo $arrArticle['title'] ?>" alt="<?php echo $arrArticle['title'] ?>"><?php echo $arrArticle['title'] ?></a><span class="txt_gray"> (<?php echo $this->DateTimeFormat($arrArticle['update_time'], 'short') ?>)</span></li>
                                                    <?php }
                                            }
                                         } ?>
                                    </ul>
                                </div>
                                <?php }
                                if(sizeof($this->arrNewsArticle) > 0 )
                                {
                                ?>
                                <div class="block_news_detail_right">
                                    <div class="txt_block_news_detail">Tin mới</div>
                                    <ul>
                                        <?php
                                        foreach($this->arrNewsArticle as $data)
                                        {
                                        ?>
                                        <li><a href="<?php echo $this->articleurl($data, 1, 1) ?>" title="<?php echo $data['title']; ?>" alt="<?php echo $data['title']; ?>" class="txt_gray"><?php echo $data['title']; ?></a></li>
                                        <?php } ?>
                                    </ul>
                                </div>
                                <?php
                                } //End top news
                                if(!empty ($this->arrPhotoByTags))
                                {
                                    $arrPhotoByTags = $this->arrPhotoByTags;
                                ?>
                                <div class="block_photo_detail_right">
                                    <div class="txt_block_news_detail">Ảnh liên quan</div>
                                    <ul>
                                        <?php
                                        $i = 1;
                                        foreach($arrPhotoByTags as $arrPhoto)
                                        {
                                        ?>
                                        <li <?php echo ($i==count($arrPhotoByTags))?'class="end"':'';?>>
                                            <a href="<?php echo $this->articleurl($arrPhoto, 1, 1) ?>" title="<?php echo $arrPhoto['title']; ?>" alt="<?php echo $arrPhoto['title']; ?>"><img src="<?php echo $this->imageurl($arrPhoto['thumbnail_url'], $this->imageSize['size3']);?>" width="155" height="116"/></a>
                                            <p><a href="<?php echo $this->articleurl($arrPhoto, 1, 1) ?>" class="txt_black_hover_blue"><?php echo $arrPhoto['title']; ?></a></p>
                                        </li>
                                        <?php } ?>                                        
                                    </ul>
                              </div>
                              <?php } ?>
                            </div>
                        </div>
                        <div class="share_news box_width_common">
                            <ul>
                                <li>
                                <bb:sp-like show_avatar="false" layout="button_count" height="25" width="115" like_text="Like" display="block" title="<?php echo $this->arrArticleDetail['title']; ?>"></bb:sp-like>
                                </li>
                                <li>
                                    <a rel="nofollow" target="_blank" href="http://plugins.banbe.net/share/post?href=<?php echo BASE_URL . urlencode($this->Articleurl($this->arrArticleDetail));?>&title=<?php echo $this->arrArticleDetail['title']; ?>" title="Chia sẻ lên banbe" alt="Chia sẻ lên banbe">
                                        <span class="icon_portal_thethao icon_like_banbe left">&nbsp;</span><span class="num_like_right">Chia sẻ</span>
                                    </a>
                                </li>
                                <li><a rel="nofollow" target="_blank" href="http://www.facebook.com/sharer.php?u=<?php echo BASE_URL . urlencode($this->Articleurl($this->arrArticleDetail));?>&t=<?php echo $this->arrArticleDetail['title']; ?>" title="Chia sẻ facebook"><span class="icon_portal_thethao icon_like_fb left">&nbsp;</span></a></li>
                                <li>
                                    <a rel="nofollow" target="_blank" href="https://twitter.com/share?url=<?php echo BASE_URL . urlencode($this->Articleurl($this->arrArticleDetail));?>&text=<?php echo $this->arrArticleDetail['title']; ?>" title="Chia sẻ twitter"><span class="icon_portal_thethao icon_like_tweet left">&nbsp;</span></a>
                                </li>
                                <li>
                                    <g:plusone size="medium" annonation="none"></g:plusone>
                                </li>
                            </ul>
                        </div>
                        <?php if(!empty($this->arrTags)){ $arrTagLastest = array_pop($this->arrTags);?>
                        <div class="tags_bar box_width_common">
                            <div class="content_tagbar">
                                <span class="icon_portal_thethao icon_tags">&nbsp;</span> <span class="txt_gray">TAGS</span>: &nbsp;
                                <?php foreach($this->arrTags as $arrTag){?>
                                    <a class="txt_blue" href="<?php echo $this->Moreviewurl(array('tag_id' => $arrTag['tag_id'], 'tag_name_filter' => Fpt_Filter::setSeoLink($arrTag['tag_name'])), 0, 'tag');?>"><?php echo $arrTag['tag_name'];?>, </a> 
                                <?php }
                                ?>
                                <a class="txt_blue" href="<?php echo $this->Moreviewurl(array('tag_id' => $arrTagLastest['tag_id'], 'tag_name_filter' =>  Fpt_Filter::setSeoLink($arrTagLastest['tag_name'])), 0, 'tag');?>"><?php echo $arrTagLastest['tag_name'];?></a>
                            </div>
                        </div>
                        <?php } ?>
                        <?php if($this->arrArticleDetail['iscomment']){?>
                        <div id="box_comment" class="box_width_common space_top_20">
                            <div class="txt_title_comment_detal">Bạn nghĩ gì?</div>
                            <div class="main_content_comment box_width_common">
                                <div class="block_input_comment">
                                    <div class="input_comment">
                                        <form id="comment_post_form">
                                            <span class="countdown right">0/1000</span>
                                            <textarea id="comment_content" class="h100 left">Hãy nhập ý kiến của bạn về bài viết này...</textarea>
                                            <div class="confirm_comment left box_width_common" >
                                                <div class="left" style="display:none">
                                                    <input type="checkbox" class="txt_check">
                                                    Chia sẻ bình luận lên &nbsp;<a class="icon_portal_thethao icon_share_banbe" href="#">&nbsp;</a>
                                                </div>                                                
                                                <div class="right">
                                                    <input id="comment_post_button" type="button" class="button btn_send_comment" value="Gửi bình luận" title="Bạn cần lựa chọn một tài khoản để gửi bình luận" />
                                                </div>
                                            </div>
                                        </form>
                                        <div id="comment_reply_wrapper" class="block_input_comment" style="display: none;float:right;">
                                            <div class="input_comment">
                                                <form id="comment_reply_form">
                                                    <textarea id="comment_reply_content" class="h100 left" style="width:540px;"></textarea>
                                                    <div class="confirm_comment left box_width_common">
                                                        <div class="right">
                                                            <input id="comment_reply_button" type="button" class="button btn_send_comment" value="Gửi bình luận" />
                                                        </div>
                                                    </div>
                                                </form>
                                            </div>


                                        </div>
                                    </div>
                                    <div class="clear">&nbsp;</div>
                                </div>
                                <div class="block_show_commen box_width_common">
                                    <div class="title_show txt_gray" id="comment_page_detail_wrapper" style="display:none">
                                        <p>Hiển thị <b id="comment_page_detail"></b> trên <b id="total_comment"></b> bình luận</p>
                                    </div>
                                    <div class="loading"></div>
                                    <div class="view_all_reply_loading"></div>
                                    <div class="main_show_comment box_width_common" id="list_comment">

                                    </div>
                                </div>
                                <div class="more_bottom_detal box_width_common">
                                    <div class="left">
                                        <a id="back-top" class="txt_gray" href="javascript:;">
                                            <span class="icon_portal_thethao icon_scrolltop">&nbsp;</span> Về đầu trang
                                        </a>
                                    </div>
                                    <div id="cmt-paginator" class="txt_view_more">
<!--                                        <a href="javascript:;" class="txt_gray">Xem thêm <b id="showmore_number_comment" class="txt_black_hover_blue"></b> bình luận</a>
                                        <span class="icon_portal_thethao icon_view_more">&nbsp;</span>-->
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php  } ?>
                    </div>
                    <div class="clear">&nbsp;</div>
                </div>
            </div>
        </div>
    </div>
    
</div>
<div style="display:none;"><?php echo $this->ArticleViewTrack($this->arrArticleDetail); ?></div>

<!-- box Ssend mail -->
<?php echo $this->render('common/box_send_mail.phtml'); ?>
<!-- the end send mail -->
<!-- Track view of object -->
<script type="text/javascript">
    var css_url = '<?php echo CSS_URL;?>';
    var img_url = '<?php echo IMAGE_URL; ?>';
    var base_url = '<?php echo SITE_URL; ?>';
</script>
<?php if($this->arrArticleDetail['iscomment']){?>
<script language="javascript" type="text/javascript" src="<?php echo $this->config['js']; ?>/euro2012/comment.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo TRACKING_URL; ?>/js/cmt.js"></script>
<script language="javascript" type="text/javascript" src="http://banbe.net/api/widget.js"></script>

<script type="text/javascript">

    $(function(){        
        if(undefined != typeof(Lightbox)){
            Lightbox.domain_image = '<?php echo IMAGE_URL ?>';
        }

        if(undefined != typeof(ArticleComment)){
            ArticleComment.params = {
                userid:0,
                objectid: <?php echo $this->arrArticleDetail['article_id']; ?>, //article id
                objecttype: <?php echo $this->arrArticleDetail['article_type']; ?>,
                siteid: <?php echo SITE_ID; ?>, //site id
                cateid: <?php echo $this->arrArticleDetail['category_id']; ?>,
                offset: 0,
                limit: 10,
                fptid_domain: '<?php echo $this->config['fptid']?>',
                referersp:'<?php echo urlencode($this->config['euro2012']['url'].'/sso.php?action=iframe&type=function&data=loginjs&sdomain=0') ?>'
            };
            ArticleComment.getComment();
            ArticleComment.initEvent();
        }

    });

</script>

<script type="text/x-jqote-template" id="tpl_comment_showmore">
    <![CDATA[
    <% if(this.items.totalPage > 3){%>
    <% if(this.items.remain > 0){%>
    <div id="showmore_comment" class="txt_view_more">
    <a href="javascript:;" class="txt_gray">Xem thêm <b id="showmore_number_comment" class="txt_black_hover_blue"><%=this.items.remain%></b> bình luận</a>
    <span class="icon_portal_thethao icon_view_more">&nbsp;</span>
    </div>
    <% } %>
    <% }else{ %>
    <div id="pagination">
        <ul>
         <li class="pading_btn"><a href="javascript:;" class="next cmt-paginator" data-comment-page="<%=this.items.previousPage%>">&nbsp;</a></li>

         <% for(var i = 0;i<this.items.totalPage;i++){%>

            <li class="<%=(i==this.items.currentPage)?'active':''%>"><a href="javascript:;" class="<%=(i==this.items.currentPage)?'current':'cmt-paginator'%>"  data-comment-page="<%=i%>" ><span><%=(i+1)%></span></a></li>

         <% } %>
         <li class="pading_btn"><a href="javascript:;" class="prve cmt-paginator" data-comment-page="<%=this.items.nextPage%>">&nbsp;</a></li>
        </ul>
    </div>
    <% } %>
    ]]>
</script>




<script type="text/x-jqote-template" id="tpl_comment_allreply">
    <![CDATA[
    <div class="replys-wrapper">
    <% for(var i in this.items){%>
    <div id="<%=this.items[i].comment_id%>" class="avata_30_comment box_width_common">
        <div class="avata_30 left">
            <% if(this.items[i].userid*1 > 0){%>
            <b class="fullname"><a class="widget" rel="FPTA_<%=this.items[i].userid%>?width=32&height=32" align="absmiddle"></a></b>
            <%}else{%>
            <a href="javascript:;">
                <img width="30" height="30" src="<?php echo $this->config['banbecdn'] ?>/user/default/avatar/avatar_32x32.jpg" alt="<%=this.items[i].full_name%>"/>
            </a>
            <% }%>
        </div>
        <div class="w530 right">
            <p>
                 <% if(this.items[i].userid*1 > 0){%>
                    <b class="fullname"><a class="widget" rel="FPTD_<%=this.items[i].userid%>"></a></b>
                <% }else{ %>
                    <a href="javascript:;" class="txt_black_hover_blue" title="<%=this.items[i].full_name%>"><b><%=this.items[i].full_name%></b></a>
                <% } %>
            </p>
            <p> <%=this.items[i].content %> </p>
            <div class="left box_width_common">
                <p class="txt_gray txt_11 left">
                    <span class="icon_portal_thethao icon_like">&nbsp;</span>
                    <%if(($.inArray(String(ArticleComment.params.userid), this.items[i].userlike) > -1)){%>
                        <a id="<%=this.items[i].comment_id%>" class="txt_gray txt_11" id="<%= this.items[i].comment_id %>"><span class="cmt-like-label">Thích</span> <span class="cmt-like-number"><%=(!(this.items[i].userlike.length*1)?'':'('+this.items[i].userlike.length+ ')')%></span></a> &nbsp; | &nbsp;
                    <%}else{%>
                        <a id="<%=this.items[i].comment_id%>" href="javascript:;" class="txt_gray txt_11 cmt-like-toggle" rel="1" id="<%= this.items[i].comment_id %>"><span class="cmt-like-label">Thích</span> <span class="cmt-like-number"><%=(!(this.items[i].userlike.length*1)?'':'('+this.items[i].userlike.length+')')%></span></a> &nbsp; | &nbsp;
                    <%}%>
                    <a id="<%=this.items[i].comment_id%>" href="javascript;" class="txt_gray txt_11 cmt-report-bad">Thông báo vi phạm</a>
                </p>
                <span class="right txt_gray txt_11"><%=this.items[i].creation_time%></span>
            </div>
        </div>
    </div>
    <% } %>
    </div>
    ]]>
</script>


<script type="text/x-jqote-template" id="tpl_comment_item_reply">
    <![CDATA[
    <div id="<%=this.item.commentid%>" class="avata_30_comment box_width_common">
        <div class="avata_30 left">
            <% if(this.item.userid*1 > 0){%>
            <b class="fullname"><a class="widget" rel="FPTA_<%=this.item.userid%>?width=32&height=32" align="absmiddle"></a></b>
            <%}else{%>
            <a href="javascript:;">
                <img width="30" height="30" src="<?php echo $this->config['banbecdn'] ?>/user/default/avatar/avatar_32x32.jpg" alt="<%=this.item.fullname%>"/>
            </a>
            <% }%>
        </div>
        <div class="w530 right">
            <p>
                <% if(this.item.userid*1 > 0){%>
                    <b class="fullname"><a class="widget" rel="FPTD_<%=this.item.userid%>"></a></b>
                <% }else{ %>
                    <a href="javascript:;" class="txt_black_hover_blue" title="<%=this.item.fullname%>"><b><%=this.item.fullname%></b></a>
                <% } %>
            </p>
            <p> <%=this.item.content %> </p>
            <div class="left box_width_common">
                <p class="txt_gray txt_11 left">
                    <span class="icon_portal_thethao icon_like">&nbsp;</span>
                    <a id="<%=this.item.commentid%>" href="javascript:;" class="txt_gray txt_11 cmt-like-toggle" rel="1" ><span class="cmt-like-label">Thích</span> <span class="cmt-like-number"></span></a> <span class="cmt-separator">&nbsp; | &nbsp; </span>
                    <a id="<%=this.item.commentid%>"  href="javascript:;" class="txt_gray txt_11 cmt-report-bad">Thông báo vi phạm</a>
                </p>
                <span class="right txt_gray txt_11"><%=this.item.time%></span>
            </div>
        </div>
    </div>
    ]]>
</script>

<script type="text/x-jqote-template" id="tpl_comment_prepitem">
    <![CDATA[
    <div id="<%=this.item.commentid%>" class="comment_item">
        <div class="avata_50 left">
            <% if(this.item.userid*1 > 0){%>
                <a class="widget" rel="FPTA_<%=this.item.userid%>?width=50&height=50" align="absmiddle"></a>
            <%}else{%>
            <a href="javascript:;">
                <img width="50" height="50" src="<?php echo $this->config['banbecdn'] ?>/user/default/avatar/avatar_50x50.jpg" alt="<%=this.item.fullname%>">
            </a>
            <% }%>
        </div>
        <div class="right w570">
            <div class="avata_50_comment box_width_common">
                <p>
                    <% if(this.item.userid*1 > 0){%>
                    <b class="fullname"><a class="widget" rel="FPTD_<%=this.item.userid%>"></a></b>
                    <% }else{ %>
                        <a href="javascript:;" class="txt_black_hover_blue" title="<%=this.item.fullname%>"><b><%=this.item.fullname%></b></a>
                    <% } %>
                </p>
                <p> <%=this.item.content%> </p>
                <div class="left box_width_common">
                    <p class="txt_gray txt_11 left">
                        <a id="<%= this.item.commentid %>" class="txt_blue txt_11 show_comment_form" href="javascript:;">
                            <span class="icon_portal_thethao icon_feedback">&nbsp;</span> <b>Trả lời</b>
                        </a> &nbsp; |  &nbsp;
                        <span class="icon_portal_thethao icon_like">&nbsp;</span>
                        <a id="<%=this.item.commentid%>" href="javascript:;" class="txt_gray txt_11 cmt-like-toggle" rel="1"><span class="cmt-like-label">Thích</span> <span class="cmt-like-number"></span></a><span class="cmt-separator"> &nbsp; | &nbsp; </span>
                        <a id="<%=this.item.commentid%>" class="txt_gray txt_11 cmt-report-bad" href="javascript;">Thông báo vi phạm</a></p>
                    <span class="right txt_gray txt_11"><%=this.item.time%></span>
                </div>
            </div>
            <div id="comment_replies_<%= this.item.commentid %>">
                <div class="replys-wrapper"></div>
            </div>
        </div>
        <div class="clear">&nbsp;</div>
    </div>
    ]]>
</script>

<script type="text/x-jqote-template" id="tpl_comment_item">
    <![CDATA[
    <% var cmts = this.items; %>
    <% for(var i in cmts){ %>
    <div class="comment_item <%=(i%2==1)?'hight_light':''%>" id="<%= cmts[i].comment_id %>">
        <div class="avata_50 left">
            <% if(cmts[i].userid*1 > 0){%>
                <a class="widget" rel="FPTA_<%=cmts[i].userid%>?width=50&height=50" align="absmiddle"></a>
            <%}else{%>
            <a href="javascript:;">
                <img width="50" height="50" src="<?php echo $this->config['banbecdn'] ?>/user/default/avatar/avatar_50x50.jpg" alt="user name">
            </a>
            <% }%>
        </div>
        <div class="right w570">
            <div class="avata_50_comment box_width_common">
                <p>
                    <% if(cmts[i].userid*1 > 0){%>
                    <b class="fullname"><a class="widget" rel="FPTD_<%=cmts[i].userid%>"></a></b>
                    <% }else{ %>
                        <a href="javascript:;" class="txt_black_hover_blue" title="<%=cmts[i].full_name%>"><b><%=cmts[i].full_name%></b></a>
                    <% } %>
                </p>
                <p> <%=  cmts[i].content %></p>
                <div class="left box_width_common">
                    <p class="txt_gray txt_11 left">
                        <a href="javascript:;" class="txt_blue txt_11 show_comment_form" id="<%= cmts[i].comment_id %>">
                            <span class="icon_portal_thethao icon_feedback">&nbsp;</span>
                            <b>Trả lời</b>
                        </a> &nbsp; |  &nbsp;
                        <span class="icon_portal_thethao icon_like">&nbsp;</span>
                        <%if(($.inArray(String(ArticleComment.params.userid), cmts[i].userlike) > -1)){%>
                            <a class="txt_gray txt_11" id="<%= cmts[i].comment_id %>"><span class="cmt-like-label">Thích</span> <span class="cmt-like-number"><%=(!(cmts[i].userlike.length*1)?'':'('+cmts[i].userlike.length+')')%></span></a><span class="cmt-separator"> &nbsp; | &nbsp; </span>
                        <%} else { %>
                            <a href="javascript:;" class="txt_gray txt_11 cmt-like-toggle" rel="1" id="<%= cmts[i].comment_id %>"><span class="cmt-like-label">Thích</span> <span class="cmt-like-number"><%=(!(cmts[i].userlike.length*1)?'':'('+cmts[i].userlike.length+')')%></span></a><span class="cmt-separator"> &nbsp; | &nbsp; </span>
                        <% } %>
                        <a href="javascript:;" class="txt_gray txt_11 cmt-report-bad" id="<%= cmts[i].comment_id %>">Thông báo vi phạm</a>
                    </p>
                    <span class="right txt_gray txt_11"><%=cmts[i].creation_time %></span> </div>
            </div>

            <div id="comment_replies_<%= cmts[i].comment_id %>">
                <div class="replys-wrapper">
                <% if(cmts[i].replys){%>
                    <% if( cmts[i].replys.items.length > 0){%>
                        <% for(var j in cmts[i].replys.items){ %>
                        <div class="avata_30_comment box_width_common" id="<%= cmts[i].replys.items[j].comment_id %>">
                            <div class="avata_30 left">
                                <% if(cmts[i].replys.items[j].userid*1 > 0){%>
                                <a class="widget" rel="FPTA_<%=cmts[i].replys.items[j].userid%>?width=30&height=30" align="absmiddle"></a>
                                <% }else{ %>
                                <a href="javascript:;">
                                    <img width="30" height="30" src="<?php echo $this->config['banbecdn'] ?>/user/default/avatar/avatar_32x32.jpg">
                                </a>
                                <% } %>

                            </div>
                            <div class="w530 right">
                                <p>
                                    <% if(cmts[i].replys.items[j].userid*1 > 0){%>
                                    <b class="fullname"><a class="widget" rel="FPTD_<%=cmts[i].replys.items[j].userid%>"></a></b>
                                    <% }else{ %>
                                        <a href="javascript:;" class="txt_black_hover_blue"><b><%=cmts[i].replys.items[j].full_name%></b></a>
                                    <% } %>
                                </p>
                                <p> <%=  cmts[i].replys.items[j].content %> </p>
                                <div class="left box_width_common">
                                    <p class="txt_gray txt_11 left">
                                        <span class="icon_portal_thethao icon_like">&nbsp;</span>
                                        <%if($.inArray(String(ArticleComment.params.userid), cmts[i].replys.items[j].userlike) > -1){%>
                                            <a class="txt_gray txt_11" id="<%= cmts[i].replys.items[j].comment_id %>"><span class="cmt-like-label">Thích</span> <span class="cmt-like-number"><%=(!(cmts[i].replys.items[j].userlike.length*1)?'':'('+cmts[i].replys.items[j].userlike.length+')')%></span></a> <span class="cmt-separator">&nbsp; | &nbsp;</span>
                                        <%}else{%>
                                            <a href="javascript:;" class="txt_gray txt_11 cmt-like-toggle" rel="1" id="<%= cmts[i].replys.items[j].comment_id %>"><span class="cmt-like-label">Thích</span> <span class="cmt-like-number"><%=(!(cmts[i].replys.items[j].userlike.length*1)?'':'('+cmts[i].replys.items[j].userlike.length+')')%></span></a> <span class="cmt-separator">&nbsp; | &nbsp;</span>
                                        <%}%>
                                        <a id="<%= cmts[i].replys.items[j].comment_id %>" class="txt_gray txt_11 cmt-report-bad" href="javascript:;">Thông báo vi phạm</a>
                                    </p>
                                    <span class="right txt_gray txt_11"><%=cmts[i].replys.items[j].creation_time%></span>
                                </div>
                            </div>
                        </div>
                        <% }%><!--endfor-->
                    <%}%><!--endif-->
               <%}%><!--endif-->
               </div>
               <%if(cmts[i].replys){%>
                   <%if(cmts[i].replys.total > 2){%>
                   <div class="txt_view_more box_width_common"><a href="javascript:;" id="<%=cmts[i].comment_id%>" class="txt_blue view_all_reply">Xem tất cả <span id="all_replys_number_<%= cmts[i].comment_id %>"><%=cmts[i].replys.total%></span> trả lời</a> </div>
                   <%}%>
               <%}%>
            </div>
        </div>
        <div class="clear">&nbsp;</div>
    </div>
    <% } %>
    ]]>
</script>
<?php  echo $this->render('common/lightbox.phtml');?>
<?php } ?>
<script type="text/javascript">
    $(function(){
        if(typeof(VideoParser) != "undefined"){
            VideoParser.domain = "<?php echo $this->config['euro2012']['url']  ?>";
            VideoParser.st_flash_domain = "<?php echo $this->config['flash'].'/euro2012' ?>";
            VideoParser.parse();
        }

        $.ajax({
           url:'<?php echo BASE_URL;?>/index/statuslogin',
           type:'GET',
           data:{urlredirect:window.location.href},
           dataType:'json',
           success:function(response) {
               if ( response.comment.length > 0 ) {
                   $("#comment_post_button").before(response.comment);
               }
           }
        });
    });
</script>
<script language="javascript" type="text/javascript" src="<?php echo JS_URL; ?>/video.parser.js"></script>